package com.college.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 课程信息
 * </p>
 *
 * @author yoki
 * @since 2024-05-29
 */
@Getter
@Setter
@TableName("course_info")
@ApiModel(value = "CourseInfo对象", description = "课程信息")
public class CourseInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("学分")
    @TableField("credit")
    private Integer credit;

    @ApiModelProperty("是否为实验课（0为是实验课，1为不是）")
    @TableField("is_experiment")
    private Integer isExperiment;

    @ApiModelProperty("课时")
    @TableField("lesson_hours")
    private String lessonHours;

    @ApiModelProperty("课程名称")
    @TableField("course_name")
    private String courseName;

    @ApiModelProperty("课程编号")
    @TableField("course_number")
    private String courseNumber;

    @ApiModelProperty("课程类型（0是专业课，1是公共选修，0是公共必修）")
    @TableField("course_type")
    private Integer courseType;

    @ApiModelProperty("所属院系编号")
    @TableField("department_number")
    private String departmentNumber;


}
